using System.Collections.Generic;
using UnityEngine;

public static class FisherYatesRandom
{
	public static List<T> Shuffle_Fisher_Yates<T>(this List<T> aList)
	{
		for (int num = aList.Count - 1; num >= 0; num--)
		{
			int index = Random.Range(0, num + 1);
			T value = aList[num];
			aList[num] = aList[index];
			aList[index] = value;
		}
		return aList;
	}
}
